package com.cxq.ssm.service.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.cxq.ssm.dao.IUserDao;
import com.cxq.ssm.domain.User;
import com.cxq.ssm.service.IUserService;

@Service("userService")
public class UserServiceImp implements IUserService {

	@Autowired
	@Qualifier("userDao")
	private IUserDao dao;

	public int userRegister(User user) {
		try {
			return dao.userInsert(user);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return 0;

	}
	public User userLogin(User user) {
		return null;
	}

}
